﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Mapping = BomberManServer.Gaming.Object.Mapping;
using BomberManServer.Gaming.Object.Bonuses;

namespace BomberManServer.Gaming.Object.Mapping.Model.States
{
    public class Trap : State
    {
        private Mapping.Trap trap;
        private BonusTemp kick;
        public Trap(Mapping.Trap trap, BonusTemp kick) { this.trap = trap; this.kick = kick; }

        public override Mapping.Block build(Mapping.Block block)
        {
            trap.block = block;
            block.item = kick;
            kick.block = block;
            return block;
        }
    }
}
